home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / auxlib / aux_reset.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-18  |  1010 b   |  29 lines

  1. /*
  2. ### reset all parameters of combined space windows with typed-in values ###
  3. */
  4.  
  5. #include <suntool/sunview.h>
  6. #include <suntool/panel.h>
  7.  
  8. aux_reset(aux_i)
  9. int aux_i;
  10. {
  11.         extern int *aux_on,**aux_cur_index;
  12.         extern Panel_item *aux_x_min_item,*aux_x_max_item,*aux_y_min_item,*aux_y_max_item;
  13.         extern double **aux_x_min,**aux_x_max;
  14.         extern char string[];
  15.  
  16.     if(aux_on[aux_i]){
  17.             strcpy(string, (char *) panel_get_value(aux_x_min_item[aux_i]));
  18.             sscanf(string, "%lg", &aux_x_min[aux_cur_index[aux_i][0]][aux_i]);
  19.             strcpy(string, (char *) panel_get_value(aux_x_max_item[aux_i]));
  20.             sscanf(string, "%lg", &aux_x_max[aux_cur_index[aux_i][0]][aux_i]);
  21.             strcpy(string, (char *) panel_get_value(aux_y_min_item[aux_i]));
  22.             sscanf(string, "%lg", &aux_x_min[aux_cur_index[aux_i][1]][aux_i]);
  23.             strcpy(string, (char *) panel_get_value(aux_y_max_item[aux_i]));
  24.             sscanf(string, "%lg", &aux_x_max[aux_cur_index[aux_i][1]][aux_i]);
  25.     }
  26. }
  27.  
  28.  
  29.